<?php get_header(); ?>

	<div id="main">

		<?php if (have_posts()) : ?>

			<h3 class="pagetitle">Search Results</h3>

			<?php while (have_posts()) : the_post(); ?>
			<div class="entry">
					<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permalink to <?php the_title(); ?>"><?php the_title(); ?></a></h2>

					<?php the_content('Continue reading this post &raquo;'); ?>
					
					<?php if (function_exists('the_tags')) { ?>
						<p class="tags"><?php the_tags('',', ',''); ?></p>
					<?php } ?>

					<p class="meta">
						<span class="cal"><a href="<?php bloginfo('url'); ?>/<?php the_time('Y') ?>/<?php the_time('m') ?>/" title="View all posts for the month of <?php the_time('F, Y') ?>"><?php the_time('m/d/Y') ?></a></span> | 
						<span class="tag"><?php the_category(', ') ?></span> | 
						<span class="com"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></span>
						<?php edit_post_link('Edit','| ',''); ?>
					</p>		
			</div>	

			<?php endwhile; ?>

				<ul class="postnav">
					<li class="left"><?php next_posts_link('&laquo; Earlier Posts') ?>&nbsp;</li>
					<li class="right">&nbsp;<?php previous_posts_link('Later Posts &raquo;') ?></li>
				</ul>

		<?php else : ?>

			<h2 class="center">No Results Found</h2>
			<p>I'm sorry to say that the term you were looking for was not found.</p>
			<p>Why don't you try clicking a link in the tags &amp; archives to the right? Or, you could try using the site map link above to try to find something that interests you.</p>

		<?php endif; ?>
	</div> 

<?php get_sidebar(); ?>

<?php get_footer(); ?>